﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace test.demo.Model.PRO生产管理
{
    /// <summary>
    /// 生产任务表
    /// </summary>
    public class Pro_Task : Entity<int>
    {
       
        /// <summary>
        /// 任务编号
        /// </summary>
        public string? TaskCode { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        public string? TaskName { get; set; }
        /// <summary>
        /// 生产工单 ID
        /// </summary>
        public int WorkorderId { get; set; }
        /// <summary>
        /// 生产工单编号
        /// </summary>
        public string? WorkorderCode { get; set; }
        /// <summary>
        ///生产工单名称
        /// </summary>
        public string? WorkorderName { get; set; }
        /// <summary>
        /// 工作站 ID
        /// </summary>
        public int WorkstationId { get; set; }
        /// <summary>
        /// 工作站编码
        /// </summary>
        public string? WorkstationCode { get; set; }
        /// <summary>
        /// 工作站名称
        /// </summary>
        public string? WorkstationName { get; set; }
        /// <summary>
        ///工序 ID
        /// </summary>
        public int ProcessId { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string? ProcessCode { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string? ProcessName { get; set; }
        /// <summary>
        /// 产品 ID
        /// </summary>
        public int ItemId { get; set; }
        /// <summary>
        ///：产品编码
        /// </summary>
        public string? ItemCode { get; set; }
        /// <summary>
        ///产品名称
        /// </summary>
        public string? ItemName { get; set; }
        /// <summary>
        ///规格型号
        /// </summary>
        public string? Specification { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? UnitOfMeasure { get; set; }
        // 排产数量
        public double Quantity { get; set; }
        /// <summary>
        /// 已生产数量
        /// </summary>
        public double QuantityProduced { get; set; }
        /// <summary>
        /// 调整数量
        /// </summary>
        public double QuantityChanged { get; set; }
        //：客户 ID
        public int ClientId { get; set; }
        /// <summary>
        /// ：客户编码
        /// </summary>
        public string? ClientCode { get; set; }
        /// <summary>
        ///客户名称
        /// </summary>
        public string? ClientName { get; set; }
        /// <summary>
        /// 开始生产时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        // 产时长
        public int Duration { get; set; }
        //完成生产时间
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// ：甘特图颜色
        /// </summary>
        public string? ColorCode { get; set; }
        /// <summary>
        /// ：需求日期
        /// </summary>
        public DateTime? RequestDate { get; set; }
        /// <summary>
        /// 生产状态
        /// </summary>
        public string? Status { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
     
        /// 创建人
        public string? CreateBy { get; set; }
        /// <summary>
        /// ：创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        // 更新人
        public string? UpdateBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpDateTime { get; set; }
    }
}
